home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / dos_win / winsock / maillist / 94-03.Z / 94-03 / text0060.txt < prev    next >
Encoding:
Text File  |  1994-03-30  |  3.6 KB  |  116 lines

  1.  
  2.  
  3. |From: netmail!paulw@world.std.com (Insitu Inc.)
  4. |
  5. |Can someone help me, I'm sure there's a simple solution to this behaviour.
  6. |
  7. |When I build my winsock application I link in the winsock.lib file. When 
  8. the
  9. |application starts, if it cannot find a winsock.dll anywhere in the path 
  10. then
  11. |it bombs out with a system modal "Cannot find WINSOCK.DLL" and the
  12. |application never
  13. |starts. This message occurs before my applcaition starts and reaches the 
  14. point
  15. |where I call WSAStartUp to test for a valid WINSOCK.DL
  16.  
  17. if you link with winsock.lib, then your application is statically linking 
  18. with winsock.dll, as opposed to dynamically linking.  when you statically 
  19. link with a DLL, the loader will require that the DLL be present when your 
  20. application starts.  if the DLL is unavailable, the loader will prevent the 
  21. application from starting.
  22.  
  23. |If none is found I handle that error correctly, but of course I can't test
  24. |this since the app
  25. |never starts.
  26. |
  27. |I have tried the following to track down what's occurring
  28. |
  29. |1./ I break just before the first winsock call I ever make (WSAStartUp)
  30. |2./ I try and load the DLL directly using loadlibrary to see if that fails
  31.  
  32. since you link with winsock.lib, this LoadLibrary is redundant and doesn't 
  33. actually do anything.  if you want to dynamically link with winsock.dll, 
  34. don't link with winsock.lib but rather do this LoadLibrary() then use 
  35. GetProcAddress() to get the function addresses of the winsock routines into 
  36. variables in your application.
  37.  
  38. |3./ Break at the very start of my program
  39. |
  40. |None of these work if there is NO winsock.dll anywhere in the search path
  41. |
  42. |I suspect some startup code has been linked into my app and it is that 
  43. which
  44. |is failing. I have tried several winsock.lib's. They are all 4096 bytes 
  45. long
  46. |and vary in date.
  47. |
  48. |Has anyone seen this?
  49. |Has anyone fixed this?
  50. |Who actually controls the winsock.lib
  51. |Is there source code for it?
  52.  
  53. winsock.lib is just a DLL import library created with implib.exe (or 
  54. something similiar) from a winsock.def file.  so the "source code" for 
  55. winsock.lib is really just the winsock.def listed in the back of the winsock 
  56. spec.
  57.  
  58. davidtr@microsoft.com
  59. From news@bigblue.oit.unc.edu Fri Mar  4 22:01:25 1994
  60. Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  61.           id AA20526; Fri, 4 Mar 1994 17:28:01 -0500
  62. Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
  63.           id AA13976; Fri, 4 Mar 1994 17:04:26 -0500
  64. Received: from GATEWAY by bigblue with netnews
  65.     for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
  66. To: winsock@sunsite.unc.edu
  67. Date: 4 Mar 1994 22:01:25 GMT
  68. From: niklas@heat.kth.se (Niklas Agren)
  69. Message-Id: <2l8b3l$rt@news.kth.se>
  70. Organization: Royal Institute of Technology, Stockholm, Sweden
  71. Sender: ses
  72. References: <2l7036$cqf@ugle.unit.no>, <2l76np$p56@news.kth.se>, <2l7c85$hk5@lastactionhero.rs.itd.umich.edu>
  73. Subject: Re: WinQVT/Net - Picking on details!
  74.  
  75. In article <2l7c85$hk5@lastactionhero.rs.itd.umich.edu>, shphan@umich.edu (S Phan) says:
  76. >
  77. >In article <2l76np$p56@news.kth.se>, niklas@heat.kth.se (Niklas Agren) says:
  78. >>
  79. >>
  80. >>A personal and maybe controversial tip:
  81. >>Use WinVN 0.82 instead. IMHO, it is a newsreader superior to WinQVTNEt.
  82. >>I use WinQVTNET for ftp and telnet only.
  83. >>
  84. >>/Niklas
  85. >
  86. >You don't even need it for ftp or telnet.  Use ws_ftp and trmptel instead, both of
  87. >which are superior to qvtnet.  WS_FTP can be obtained from the cica site, and
  88. >trmptel from ftp.utas.edu.au.
  89. >
  90. >Qvtnet is just too buggy - something is always wrong with each new version that
  91. >came out, including 3.97.
  92.  
  93. Thanks!!!
  94. I can't believe how WS_FTP has passed me by. It is indeed a sharper
  95. tool that Qvtnet-ftp.
  96. /Niklas
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.